<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib prefix="s" uri="/struts-tags" %>

<%@ page import='com.bms.actions.*' %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<link rel="stylesheet" type="text/css" href="css/form.css" />
<title>Insert title here</title>
<script type="text/javascript">
function handleChange(value){
window.location = "/UI/setAction?citySelected="+value;
}
</script>
	<title>jQuery UI Datepicker - Default functionality</title>
    <link rel="stylesheet" href="http://code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css" />
    <script src="http://code.jquery.com/jquery-1.8.3.js"></script>
    <script src="http://code.jquery.com/ui/1.9.2/jquery-ui.js"></script>
	<script>
	$(function() {
		$( "#datepicker" ).datepicker();
	});
	</script>
</head>
<body>

<div id="stylized" class="myform">
<fieldset>
                        <s:form action="resultAction" method="post" name="myform" >
                            
                            <s:select label="Select a City" headerValue="Select City"
                            list="city" 
                            name="yourCity" 
                            value="defaultCity"
                            onchange="handleChange(this.value)" 
                           	   />
                            
                            <s:select label="Select a Theatre" 
                            list="theatre" 
                            name="yourTheatre" 
                            value="defaultTheatre" />
          
                            <s:textfield name="movieName" id="myinput" label="Enter Movie Name" size="20" />
             				<s:checkboxlist label = "Timings" list="times" name="yourTime" value="defaultTime" />
             				
                            <s:submit name = "insertButton" id="mysubmit" value="Insert"  align="center" />
                        
    						<div class="spacer"></div>
    					
    						
                        </s:form>
                        	<p>Date: <input type="text" id="datepicker" ></p>
                        </fieldset>
                        </div>


</body>
</html>